//
//  FBFilesTableViewController.h
//  FileBrowser
//
//  Created by Steven Troughton-Smith on 18/06/2013.
//  Copyright (c) 2013 High Caffeine Content. All rights reserved.
//


// 使用方法：把两个文件直接拖进工程即可，不入侵任何业务代码。如果需要使用共享沙盒，只需在info.plist文件中增加sandbox_group_identifier 键值对即可

//#define group_identifier @"group.com.kingnet"
#define group_identifier [NSBundle mainBundle].infoDictionary[@"sandbox_group_identifier"]   // group id,需在info.plist文件中增加sandbox_group_identifier的值
#define remember_last_path YES   // 是否记住上次访问位置
#define zip_password nil     // 压缩时设置的压缩密码
#define delete_after_imported YES   // 外部导入文件之后要不要删除inbox中的临时文件
#define touchs_begin_debug YES    // 开启后触摸屏幕就弹出沙盒



#import <UIKit/UIKit.h>
#import <QuickLook/QuickLook.h>

@interface SandBoxTool : UITableViewController <QLPreviewControllerDataSource>

+ (BOOL)application:(UIApplication *)app openURL:(NSURL *)url options:(NSDictionary<UIApplicationOpenURLOptionsKey,id> *)options;
- (id)initWithGroupIdentifier:(NSString *)path;
- (id)initWithPath:(NSString *)path;

@property (nonatomic, strong) UIActivityIndicatorView *ai;
@property (strong) NSString *path;
@property (strong) NSMutableArray *files;
@end

@interface FBTableViewCell : UITableViewCell
@property (nonatomic, copy) NSString *path;
@property (nonatomic, assign) BOOL isDirectory;
@property (nonatomic, strong) UIButton *delete;
@property (nonatomic, strong) UIButton *share;
@property (nonatomic, weak) SandBoxTool *vc;
@end

@interface FBCustomPreviewController : UIViewController
{
    __strong UITextView *textView;
    __strong UIImageView *imageView;
}

+(BOOL)canHandleExtension:(NSString *)fileExt;
- (instancetype)initWithFile:(NSString *)file;

@end


NS_ASSUME_NONNULL_BEGIN

@interface UIViewController (AutoShake)

@end

NS_ASSUME_NONNULL_END

